<template>
  <view class="con">
    <view class="main">
      <view class="main_v1">认证流程</view>
      <!-- <image class="main_v2" mode="widthFix" src="/static/index/img10.png"></image> -->
      <view class="main_v3">
        <view>第一步：点击下方“复制链接”按钮复制链接</view>
        <view>第二步：复制链接到浏览器访问</view>
        <view>第三步：浏览器会显示跳转到拼多多</view>
        <view>第四步：在打开的拼多多页面确认</view>
      </view>
      <view class="main_v3">
        <view>注：用任意多多账号认证一次即可</view>
      </view>

    </view>
    <view class="fuzhi" @click="copyUrl">复制链接</view>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        returnurl: ''
      };
    },
    onLoad(options) {
      console.log('单页-接收参数')
      console.log(options)
      this.returnurl = decodeURIComponent(options.returnurl)
    },
    onShow() {

    },
    methods: {
      copyUrl() {
        uni.setClipboardData({
          data: this.returnurl,
          success: function() {
            uni.showToast({
              title: '复制成功',
              icon: 'success',
              duration: 2000
            });
          }
        });
      }

    }
  }
</script>

<style scoped lang="scss">
  .main {
    padding: 30rpx;
    width: 100%;
    box-sizing: border-box;
    height: auto;

    .main_v1 {
      line-height: 58rpx;
      color: rgba(16, 16, 16, 1);
      font-size: 48rpx;
      margin-bottom: 60rpx;
    }

    .main_v2 {
      display: block;
      width: 100%;
      height: auto;
      margin-bottom: 36rpx;
    }

    .main_v3 {
      width: 100%;
      line-height: 40rpx;
      color: rgba(16, 16, 16, 1);
      font-size: 28rpx;
      margin-bottom: 40rpx;
    }
  }

  .fuzhi {
    width: 100%;
    height: 80rpx;
    line-height: 80rpx;
    border-radius: 100rpx;
    background-color: rgba(249, 191, 65, 1);
    text-align: center;
    color: rgba(16, 16, 16, 1);
    font-size: 28rpx;
  }
</style>